//
//  BMKUserData.m
//  Pet
//
//  Created by babbage on 16/5/30.
//  Copyright © 2016年 babbage. All rights reserved.
//

#import "BMKUserData.h"

@implementation BMKUserData

+(instancetype)userData
{
    static id userData;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        userData = [[BMKUserData alloc]init];
    });
    return userData;
}

-(BOOL)allowGetLoaction
{
    if ([CLLocationManager locationServicesEnabled] &&
        ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusAuthorized
         || [CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined)) {
            return YES;
        }
    return NO;
}

@end
